package com.dongfanggroup.report.service;

import com.dongfanggroup.report.domain.ReportOrderHistory;
import com.dongfanggroup.report.enums.ReportOrderStatusEnum;

import java.util.List;

/**
 * 报障单历史Service接口
 * 
 * @author wangsr
 * @date 2021-12-16
 */
public interface IReportOrderHistoryService 
{
    /**
     * 查询报障单历史
     * 
     * @param id 报障单历史主键
     * @return 报障单历史
     */
    public ReportOrderHistory selectReportOrderHistoryById(Long id);

    /**
     * 查询报障单历史列表
     * 
     * @param reportOrderHistory 报障单历史
     * @return 报障单历史集合
     */
    public List<ReportOrderHistory> selectReportOrderHistoryList(ReportOrderHistory reportOrderHistory);

    /**
     * 新增报障单历史
     * 
     * @param reportOrderHistory 报障单历史
     * @return 结果
     */
    public int insertReportOrderHistory(ReportOrderHistory reportOrderHistory);

    /**
     * 修改报障单历史
     * 
     * @param reportOrderHistory 报障单历史
     * @return 结果
     */
    public int updateReportOrderHistory(ReportOrderHistory reportOrderHistory);

    /**
     * 批量删除报障单历史
     * 
     * @param ids 需要删除的报障单历史主键集合
     * @return 结果
     */
    public int deleteReportOrderHistoryByIds(Long[] ids);

    /**
     * 删除报障单历史信息
     * 
     * @param id 报障单历史主键
     * @return 结果
     */
    public int deleteReportOrderHistoryById(Long id);

    List<ReportOrderHistory> selectReportOrderHistoryByReportId(Long reportId);

    void insertNewLog(Long reportId, String info, ReportOrderStatusEnum status);
}
